<template>
  <div id="app">
    <Nav class="left-nav"/>
    <div class="right">
      <Header/>
      <router-view class="view"/>
    </div>
  </div>
</template>

<script>
  import Nav from './components/Nav'
  import Header from './components/Header'

  export default {
    components: {
      Nav,
      Header
    },
  }
</script>

<style lang="less">
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    display: flex;
    position: relative;
  }
  .left-nav{
    position: fixed;
  }
  .right{
    width: 80%;
    position: relative;
    margin-left: 20%;
    .view{
      margin-top: 60px;
      padding: 20px;
    }
  }
</style>
